import fetch from '@/utils/fetch';

export const getTempList = (data) => {
  return fetch({
    url: '/web-admin/material/getTempList',
    method: 'POST',
    data,
  });
};

export const pageMateralList = (data) => {
  return fetch({
    url: '/web-admin/material/pageMateralList',
    method: 'POST',
    data,
  });
};

export const userPageMateralList = (data) => {
  return fetch({
    url: '/web-admin/material/userPageMateralList',
    method: 'POST',
    data,
  });
};

export const editeMateralStatus = (data) => {
  return fetch({
    url: '/web-admin/material/editeMateralStatus',
    method: 'POST',
    data,
  });
};

export const getMateral = (data) => {
  return fetch({
    url: '/web-admin/material/getMateral',
    method: 'POST',
    data,
  });
};

export const getMateralV2 = (data) => {
  return fetch({
    url: '/web-admin/material/getMateralV2',
    method: 'POST',
    data,
  });
};

export const getCopyMateral = (data) => {
  return fetch({
    url: '/web-admin/material/getCopyMateral',
    method: 'POST',
    data,
  });
};

export const createGetMateralRecord = (data) => {
  return fetch({
    url: '/web-admin/material/createGetMateralRecord',
    method: 'POST',
    data,
  });
};

export const generateMateralV2 = (data) => {
  return fetch({
    url: '/web-admin/material/generateMateralV2',
    method: 'POST',
    data,
  });
};

export const previewMateralV2 = (data) => {
  return fetch({
    url: '/web-admin/material/previewMateralV2',
    method: 'POST',
    data,
  });
};

export const createMateralV2 = (data) => {
  return fetch({
    url: '/web-admin/material/createMateralV2',
    method: 'POST',
    data,
  });
};

export const materalGetRecordList = (data) => {
  return fetch({
    url: '/web-admin/material/materalGetRecordList',
    method: 'POST',
    data,
  });
};

export const editMateralTitle = (data) => {
  return fetch({
    url: '/web-admin/material/editMateralTitle',
    method: 'POST',
    data,
  });
};
